using Microsoft.AspNetCore.Http;
using Vin.Extension.Framework.Alipay.Models;

namespace Vin.Extension.Framework.Alipay.Adapter;

public interface IAlipayNotify
{
    /// <summary>
    /// 当子类多个情况下 可以通过 Order 属性来控制执行顺序
    /// </summary>
    public int Order { get; set; }

    /// <summary>
    /// 回调消息方法名
    /// </summary>
    public string? MsgMethod { get; }
    
    /// <summary>
    /// 回调消息类型
    /// </summary>
    public string? NotifyType { get; set; }
    
    public Task NotifyAsync(HttpContext context, AlipayNotifyModel model);
}